<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>添加演员列表</title>
    <link href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <div class="text" style=" text-align:center;"><h1>演员添加列表页面</h1></div>
    <div class="text" style="..."><a>学号：1604220542</a><br>姓名：郑锦标</br></div>
    <div class="row">
        <div class="col">
            <label>电影名称：</label>
            <span th:text="${info.name}"></span>
        </div>
        <div class="col">
            <label> 发行日期：</label>
            <span th:text="${info.createDate} ? ${#dates.format(info.createDate,'yyyy-MM-dd')} :''"></span>
        </div>
    </div>
</div>
<div class="container">
    <form method="post" th:action="@{/role/add}">

        <div class="form-group">
            <label for="actor_name">演员名字</label>
            <input type="text" class="form-control" name="actor_name"/>
        </div>

        <div class="form-group">
            <label for="role_name">角色名字</label>
            <input type="text" class="form-control" name="role_name"/>
        </div>

        <input type="hidden" name="movie_id" th:value="${info.id}"/>

        <button type="submit" class="btn btn-primary">保存</button>
        <button type="reset" class="btn btn-primary">取消</button>

    </form>
</div>

</body>
</html>